package com.rogo.oauth
{
	
	/**
	 * http 请求参数
	 * 
	 * @author Rogo
	 */	
	public class URLParam
	{
		public function URLParam(name:String, value:String)
		{
			paramName = name;
			paramValue = value;
		}
		
		//--------------------------------------------------------------------------
		//
		//  Varaibles
		//
		//--------------------------------------------------------------------------
		
		public var paramName:String;
		public var paramValue:String;
		
		public function get baseString():String
		{
			// url_encode ( k ) + "%3D" + url_encode ( v )
			return encodeURIComponent(paramName) + '%3D' 
				+ encodeURIComponent(paramValue);
		}
		
	}
}